package com.android.microweather;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;

public class City implements Serializable {
	/**
	 * These data members are used solely for (de)serialization's sake + avoid version conflicts. 
	 */
	private static final long serialVersionUID = 10L;	// 10 is really 1.0 from major and minor version #s
	@SuppressWarnings("unused")
	private int 						majorVersion = 1;
	@SuppressWarnings("unused")
	private int 						minorVersion = 0;

	private String 						id;
	private String 						name;
	private String 						countryName;
	private boolean						autoUpdateEnabled;
	private String 						forecastURL;
	private Date 						lastUpdated;
	private ArrayList<ForecastedDay>	days;
	
	String getId() {
		return id;
	}
	void setId(String id) {
		this.id = id;
	}
	String getName() {
		return name;
	}
	void setName(String name) {
		this.name = name;
	}
	String getCountryName() {
		return countryName;
	}
	void setCountryName(String countryName) {
		this.countryName = countryName;
	}
	boolean isMAutoUpdateEnabled() {
		return autoUpdateEnabled;
	}
	void setAutoUpdateEnabled(boolean autoUpdateEnabled) {
		this.autoUpdateEnabled = autoUpdateEnabled;
	}
	String getForecastURL() {
		return forecastURL;
	}
	void setForecastURL(String forecastURL) {
		this.forecastURL = forecastURL;
	}
	Date getLastUpdated() {
		return lastUpdated;
	}
	void setLastUpdated(Date lastUpdated) {
		this.lastUpdated = lastUpdated;
	}
	ArrayList<ForecastedDay> getDays() {
		return days;
	}
	void setDays(ArrayList<ForecastedDay> days) {
		this.days = days;
	}
}
